Skip to content

feat(plugin): add Lua file and directory operations#677

Open
HowXu wants to merge 3 commits into
version-fox:mainfrom
HowXu:feat/lua-file-io
Open

feat(plugin): add Lua file and directory operations#677
HowXu wants to merge 3 commits into
version-fox:mainfrom
HowXu:feat/lua-file-io

Conversation

@HowXu

@HowXu HowXu commented Jun 20, 2026

Copy link
Copy Markdown

Summary

  • expose copy, remove, move APIs to Lua plugins
  • support both files and directories
  • recursively copy and remove directories
  • add English and Chinese documentation
  • preload the file module in plugin VMs

Tests

  • file module coverage: 100%
  • plugin module and core plugin tests pass

Closes #671

@bytemain

Copy link
Copy Markdown
Member

推荐改名叫 fs

@HowXu

HowXu commented Jun 22, 2026

Copy link
Copy Markdown
Author

推荐改名叫 fs

quite good, i'll do it later

@bytemain

Copy link
Copy Markdown
Member

@aooohan 我看之前就有这个 file 的 lua preload,这个是已经在线上在用的吗

@HowXu

HowXu commented Jun 26, 2026

Copy link
Copy Markdown
Author

@bytemain Is there any follow‑up on this? This feature could indeed provide some help for plugin development. For compatibility reasons, both splitting fs into a separate module or keeping it under the file name—are viable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add file io support for plugins

2 participants